package httpsvr

const (
	/*
		1: 登陆认证失败
		2：用户请求数据处理失败
		3：服务端处理失败
	*/
	StatusOK           = 0
	StatusInvalidSign  = 1000
	StatusLoginFailed  = 1003
	StatusAccessDenied = 1199
	// 请求参数合法性验证
	StatusNotLegalInput = 1201
	// json请求校验失败
	StatusBodyInvalid          = 1204
	StatusDataProcessingFailed = 3000
	StatusSaveDataFailed       = 3001
	StatusNotFound             = 3010
)

var statusText = map[int]string{
	0:    "成功",
	1000: "无效的签名",
	1003: "登陆失败",
	1199: "拒绝访问",
	1201: "参数校验失败",
	1204: "请求的数据格式错误",
	3000: "系统处理数据失败",
	3001: "保存数据失败",
	3010: "没找到数据",
}
